package com.aeroyun.macross.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 村庄
 * </p>
 *
 * @author aeroyun
 * @since 2018-08-17
 */
@TableName("cs_village")
public class Village extends Model<Village> {

    private static final long serialVersionUID = 1L;

    /**
     * 村庄ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 村庄名称
     */
    @TableField("village_name")
    private String villageName;
    /**
     * 所属乡镇
     */
    @TableField("town_id")
    private Integer townId;
    /**
     * 经度
     */
    private String longitude;
    /**
     * 纬度
     */
    private String latitude;
    /**
     * 户数
     */
    @TableField("household_count")
    private Integer householdCount;
    /**
     * 人口数量
     */
    private Integer population;
    /**
     * 外出务工人数
     */
    @TableField("out_count")
    private Integer outCount;
    /**
     * 平均纯收入
     */
    @TableField("avg_pure_income")
    private BigDecimal avgPureIncome;
    /**
     * 占地面积
     */
    @TableField("area_size")
    private BigDecimal areaSize;
    /**
     * 耕地面积
     */
    @TableField("farmland_size")
    private BigDecimal farmlandSize;
    /**
     * 主要种植作物
     */
    @TableField("main_plant")
    private String mainPlant;
    /**
     * 负责人
     */
    @TableField("head_farmer_id")
    private Integer headFarmerId;
    /**
     * 备注
     */
    private String remark;
    /**
     * 是否删除
     */
    @TableField("is_deleted")
    private Integer isDeleted;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getVillageName() {
        return villageName;
    }

    public void setVillageName(String villageName) {
        this.villageName = villageName;
    }

    public Integer getTownId() {
        return townId;
    }

    public void setTownId(Integer townId) {
        this.townId = townId;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public Integer getHouseholdCount() {
        return householdCount;
    }

    public void setHouseholdCount(Integer householdCount) {
        this.householdCount = householdCount;
    }

    public Integer getPopulation() {
        return population;
    }

    public void setPopulation(Integer population) {
        this.population = population;
    }

    public Integer getOutCount() {
        return outCount;
    }

    public void setOutCount(Integer outCount) {
        this.outCount = outCount;
    }

    public BigDecimal getAvgPureIncome() {
        return avgPureIncome;
    }

    public void setAvgPureIncome(BigDecimal avgPureIncome) {
        this.avgPureIncome = avgPureIncome;
    }

    public BigDecimal getAreaSize() {
        return areaSize;
    }

    public void setAreaSize(BigDecimal areaSize) {
        this.areaSize = areaSize;
    }

    public BigDecimal getFarmlandSize() {
        return farmlandSize;
    }

    public void setFarmlandSize(BigDecimal farmlandSize) {
        this.farmlandSize = farmlandSize;
    }

    public String getMainPlant() {
        return mainPlant;
    }

    public void setMainPlant(String mainPlant) {
        this.mainPlant = mainPlant;
    }

    public Integer getHeadFarmerId() {
        return headFarmerId;
    }

    public void setHeadFarmerId(Integer headFarmerId) {
        this.headFarmerId = headFarmerId;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Village{" +
        "id=" + id +
        ", villageName=" + villageName +
        ", townId=" + townId +
        ", longitude=" + longitude +
        ", latitude=" + latitude +
        ", householdCount=" + householdCount +
        ", population=" + population +
        ", outCount=" + outCount +
        ", avgPureIncome=" + avgPureIncome +
        ", areaSize=" + areaSize +
        ", farmlandSize=" + farmlandSize +
        ", mainPlant=" + mainPlant +
        ", headFarmerId=" + headFarmerId +
        ", remark=" + remark +
        ", isDeleted=" + isDeleted +
        "}";
    }
}
